import request from '@/utils/request'

// 查询周报简报列表
export function listWeeklyReport(query) {
  return request({
    url: '/weeklyReport/weeklyReport/list',
    method: 'get',
    params: query
  })
}

// 查询周报简报详细
export function getWeeklyReport(id) {
  return request({
    url: '/weeklyReport/weeklyReport/' + id,
    method: 'get'
  })
}

// 新增周报简报
export function addWeeklyReport(data) {
  return request({
    url: '/weeklyReport/weeklyReport',
    method: 'post',
    data: data
  })
}

// 修改周报简报
export function updateWeeklyReport(data) {
  return request({
    url: '/weeklyReport/weeklyReport',
    method: 'put',
    data: data
  })
}

// 删除周报简报
export function delWeeklyReport(id) {
  return request({
    url: '/weeklyReport/weeklyReport/' + id,
    method: 'delete'
  })
}
// 删除周报简报
export function logicDelWeeklyReport(id) {
  return request({
    url: '/weeklyReport/weeklyReport/' + id,
    method: 'delete'
  })
}

// 导出周报简报
export function exportWeeklyReport(query) {
  return request({
    url: '/weeklyReport/weeklyReport/export',
    method: 'get',
    params: query
  })
}



export function getProjectManagerName(id) {
  return request({
    url: '/weeklyReport/weeklyReport/getProjectManagerName/' + id,
    method: 'get'
  })
}
